std::basic_ostream::tellp
From Cppreference
< cpp | io | basic ostream
| C++ Standard Library | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Input/output library | ||||||||||||||||||||||||||||||||||||||||||||||||
| std::basic_ostream | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
| pos_type tellp();
| ||
Returns output position indicator of the current associated streambuf object.
Essentially calls rdbuf()->pubseekoff(0, std::ios_base::cur, std::ios_base::out).
Contents |
[edit] Parameters
(none)
[edit] Return value
current output position indicator on success, -1 if a failure (fail() != false) occurs.
[edit] Example
| This section is incomplete |
[edit] See also
| sets the output position indicator (public member function) | |
| returns the input position indicator (public member function of std::basic_istream) | |
| sets the input position indicator (public member function of std::basic_istream) | |